{"version":3,"file":"script.min.js","sources":["script.js"],"names":["window","repo","BX","namespace","Disk","UFMobile","UF","params","this","dialogName","CID","controlName","container","bind","proxy","click","handleAppFile","delegate","showDiskDialog","handleDiskFile","urls","location","protocol","host","message","agent","Uploader","getInstance","id","streams","allowUpload","uploadFormData","uploadMethod","uploadFileUrl","showImage","sortItems","input","dropZone","placeHolder","queueFields","thumb","tagName","className","fields","template","preview","width","height","init","prototype","upload","folder","getAttach","getFile","e","PreventDefault","show","buttons","title","callback","app","takePhoto","quality","source","correctOrientation","targetWidth","targetHeight","destinationType","Camera","DestinationType","DATA_URL","platform","push","BXMobileApp","UI","ActionSheet","image","dataBlob","UploaderUtils","dataURLToBlob","name","date","format","onChange","values","_onFileIsCreated","onFileIsCreated","_onFileIsBound","onFileIsBound","_onFileIsAppended","onFileIsAppended","_onUploadStart","onUploadStart","_onUploadProgress","onUploadProgress","_onUploadDone","onUploadDone","_onUploadError","onUploadError","addCustomEvent","length","ar1","ar2","ii","findChild","innerHTML","getAttribute","replace","onAttach","file","size","getFormattedSize","item","bindFile","node","getItem","addClass","progress","result","removeClass","n","findChildByClassName","inp","create","attrs","type","value","appendChild","onCustomEvent","hasClass","del","hasAttribute","setAttribute","deleteFile","openFile","remove","url","indexOf","Document","open","UFMobileView","bindNode","proxy_context","nameNode","console","log","add","findChildren","addView","getByName","hasOwnProperty"],"mappings":"CAAC,SAAUA,GACV,GAAIC,KACJC,IAAGC,UAAU,UACb,IAAID,GAAGE,KAAKC,SACX,MACDH,IAAGE,KAAKC,SAAW,WAClB,GAAIC,GAAK,SAAUC,GAClBC,KAAKC,WAAa,gBAClBD,MAAKD,OAASA,CACdC,MAAKE,IAAMH,EAAO,MAClBC,MAAKG,YAAcJ,EAAO,cAC1BC,MAAKI,UAAYV,GAAG,sBAAwBK,EAAO,OAEnD,IAAIL,GAAG,oBAAsBK,EAAO,QACpC,CACCL,GAAGW,KAAKX,GAAG,oBAAsBK,EAAO,QAAS,QAASL,GAAGY,MAAMN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